Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: count TraversablePaginator #6611

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

nikophil
Copy link
Contributor

@nikophil nikophil commented Sep 12, 2024

Q A
Branch? 3.2
License MIT

Hello,

whenever the TraversablePaginator has the same number of items than the itemsPerPage, it currently returns 0, although it should return totalItems

This PR fixes this buggy behavior

It seems strange that nobody has noticed this before 🤔

@soyuka soyuka merged commit 1b9dfcc into api-platform:3.2 Sep 16, 2024
31 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants